home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-01-18 | 8.3 KB | 379 lines | [TEXT/MPS ] |
- #include "Types.r"
- resource 'MENU' (131) {
- 131,
- textMenuProc,
- 0x7FFFFFD7,
- enabled,
- "Test Stuff",
- { /* array: 1 elements */
- /* [1] */
- "Refresh Mac List", noIcon, noKey, noMark, plain
- }
- };
-
- resource 'MENU' (128, preload) {
- 128,
- textMenuProc,
- 0x7FFFFFFD,
- enabled,
- apple,
- { /* array: 2 elements */
- /* [1] */
- "About", noIcon, noKey, noMark, plain,
- /* [2] */
- "-", noIcon, noKey, noMark, plain
- }
- };
-
- resource 'MENU' (129, preload) {
- 129,
- textMenuProc,
- 0xE00,
- enabled,
- "File",
- { /* array: 10 elements */
- /* [1] */
- "New", noIcon, "N", noMark, plain,
- /* [2] */
- "Open", noIcon, "O", noMark, plain,
- /* [3] */
- "Close", noIcon, "W", noMark, plain,
- /* [4] */
- "Save", noIcon, "S", noMark, plain,
- /* [5] */
- "Save As...", noIcon, noKey, noMark, plain,
- /* [6] */
- "-", noIcon, noKey, noMark, plain,
- /* [7] */
- "Page Setup...", noIcon, noKey, noMark, plain,
- /* [8] */
- "Print...", noIcon, "P", noMark, plain,
- /* [9] */
- "-", noIcon, noKey, noMark, plain,
- /* [10] */
- "Quit", noIcon, "Q", noMark, plain
- }
- };
-
- resource 'MENU' (130, preload) {
- 130,
- textMenuProc,
- 0x3400,
- enabled,
- "Edit",
- { /* array: 6 elements */
- /* [1] */
- "Undo", noIcon, "Z", noMark, plain,
- /* [2] */
- "-", noIcon, noKey, noMark, plain,
- /* [3] */
- "Cut", noIcon, "X", noMark, plain,
- /* [4] */
- "Copy", noIcon, "C", noMark, plain,
- /* [5] */
- "Paste", noIcon, "V", noMark, plain,
- /* [6] */
- "Clear", noIcon, noKey, noMark, plain
- }
- };
-
- resource 'DITL' (128, purgeable) {
- { /* array DITLarray: 5 elements */
- /* [1] */
- {164, 115, 184, 185},
- Button {
- enabled,
- "OK"
- },
- /* [2] */
- {11, 76, 34, 246},
- StaticText {
- disabled,
- "IPCListPorts example"
- },
- /* [3] */
- {76, 3, 154, 301},
- StaticText {
- disabled,
- "FredWare from Apple Developer Technical "
- "Support, ADS group.\nCopyright © 1991 Ap"
- "ple Computer Inc.\nWritten by C.K. Haun <"
- "TR>\nPPC Code by Jim Luther JML"
- },
- /* [4] */
- {53, 82, 71, 227},
- StaticText {
- disabled,
- "version 1.0"
- },
- /* [5] */
- {-1, 1, 68, 69},
- Icon {
- disabled,
- 129
- }
- }
- };
-
- resource 'DITL' (129, purgeable) {
- { /* array DITLarray: 2 elements */
- /* [1] */
- {170, 90, 190, 148},
- Button {
- enabled,
- "OK"
- },
- /* [2] */
- {10, 40, 62, 204},
- StaticText {
- disabled,
- "Help information should go here"
- }
- }
- };
-
- resource 'DITL' (130, purgeable) {
- { /* array DITLarray: 3 elements */
- /* [1] */
- {80, 100, 100, 158},
- Button {
- enabled,
- "Exit"
- },
- /* [2] */
- {10, 80, 27, 237},
- StaticText {
- disabled,
- "Bad System Version!"
- },
- /* [3] */
- {50, 25, 66, 232},
- StaticText {
- disabled,
- "Requires System 7 or greater."
- }
- }
- };
-
- resource 'DITL' (131) {
- { /* array DITLarray: 2 elements */
- /* [1] */
- {18, 25, 50, 57},
- Icon {
- disabled,
- 128
- },
- /* [2] */
- {15, 70, 56, 325},
- StaticText {
- disabled,
- "Getting a list of all the machines in th"
- "is zone, hang on......"
- }
- }
- };
-
- resource 'ALRT' (128, purgeable) {
- {40, 40, 229, 363},
- 128,
- { /* array: 4 elements */
- /* [1] */
- OK, visible, silent,
- /* [2] */
- OK, visible, silent,
- /* [3] */
- OK, visible, silent,
- /* [4] */
- OK, visible, silent
- }
- };
-
- resource 'ALRT' (130, purgeable) {
- {40, 40, 149, 296},
- 130,
- { /* array: 4 elements */
- /* [1] */
- OK, visible, sound1,
- /* [2] */
- OK, visible, sound1,
- /* [3] */
- OK, visible, sound1,
- /* [4] */
- OK, visible, sound1
- }
- };
-
- resource 'WIND' (128, purgeable) {
- {44, 4, 242, 498},
- documentProc,
- visible,
- noGoAway,
- 0x0,
- "Simple"
- };
-
- resource 'WIND' (129) {
- {40, 40, 170, 286},
- movableDBoxProc,
- invisible,
- noGoAway,
- 0x0,
- "Sample Moveable Modal"
- };
-
- data 'TEXT' (128) {
- $"5468 6973 2073 616D 706C 6520 7368 6F77" /* This sample show */
- $"2061 2076 6572 7920 7369 6D70 6C65 2069" /* a very simple i */
- $"6D70 6C65 6D65 6E74 6174 696F 6E20 6F66" /* mplementation of */
- $"2074 6865 2037 2E30 204D 6F76 6561 626C" /* the 7.0 Moveabl */
- $"6520 4D6F 6461 6C20 4469 616C 6F67 2E0D" /* e Modal Dialog.¬ */
- $"5369 6E63 6520 796F 7520 6361 6E27 7420" /* Since you can't */
- $"6361 6C6C 204D 6F64 616C 4469 616C 6F67" /* call ModalDialog */
- $"206F 6E20 6120 4D4D 6F64 616C 2C20 796F" /* on a MModal, yo */
- $"7520 6861 7665 2074 6F20 646F 2074 6865" /* u have to do the */
- $"2061 6374 7561 6C20 6869 7420 7265 7374" /* actual hit rest */
- $"7269 6374 696E 6720 616E 6420 6D65 6E75" /* ricting and menu */
- $"2064 696D 6D69 6E67 2079 6F75 7273 656C" /* dimming yoursel */
- $"662C 2062 7574 2069 7427 7320 6E6F 7420" /* f, but it's not */
- $"7265 616C 6C79 206D 7563 6820 6D6F 7265" /* really much more */
- $"206F 6620 6120 6368 6F72 652E 2020 416C" /* of a chore. Al */
- $"6C20 796F 7520 6E65 6564 2074 6F20 6164" /* l you need to ad */
- $"6420 6973 206F 6E65 206C 696C 2720 676C" /* d is one lil' gl */
- $"6F62 616C 2074 6861 7420 7465 6C6C 7320" /* obal that tells */
- $"796F 7520 7768 656E 2079 6F75 2776 6520" /* you when you've */
- $"676F 7420 6120 4D4D 6F64 616C 2075 702C" /* got a MModal up, */
- $"2061 6E64 2074 6869 6E67 7320 7769 6C6C" /* and things will */
- $"2062 6520 776F 6E64 6572 6675 6C2E 0D0D" /* be wonderful.¬¬ */
- $"5365 6C65 6374 2027 4F70 656E 204D 6F76" /* Select 'Open Mov */
- $"6561 626C 6520 4D6F 6461 6C27 2066 726F" /* eable Modal' fro */
- $"6D20 7468 6520 5465 7374 2053 7475 6666" /* m the Test Stuff */
- $"206D 656E 7520 746F 2077 6174 6368 2069" /* menu to watch i */
- $"7420 776F 726B 2E" /* t work. */
- };
-
- data 'TEXT' (129) {
- $"5468 6973 2069 7320 6120 6D6F 7665 6162" /* This is a moveab */
- $"6C65 206D 6F64 616C 2064 6961 6C6F 672E" /* le modal dialog. */
- $"2020 436C 6963 6B20 696E 2074 6861 7420" /* Click in that */
- $"6275 7474 6F6E 2074 6865 7265 2074 6F20" /* button there to */
- $"6D61 6B65 2069 7420 676F 2061 7761 792E" /* make it go away. */
- };
-
- data 'TEXT' (130) {
- $"4772 6174 7569 746F 7573 2053 6563 6F6E" /* Gratuitous Secon */
- $"6420 5769 6E64 6F77 2E20 2049 676E 6F72" /* d Window. Ignor */
- $"6520 6D65 2C20 706C 6561 7365 2E" /* e me, please. */
- };
-
- resource 'STR#' (128) {
- { /* array StringArray: 3 elements */
- /* [1] */
- "Another Window Fer Fun",
- /* [2] */
- "PPC Capable Macs",
- /* [3] */
- "PPC Ports on Selected mac"
- }
- };
-
- resource 'STR#' (129) {
- { /* array StringArray: 2 elements */
- /* [1] */
- "Close Moveable Modal Dialog",
- /* [2] */
- "Open Moveable Modal Dialog"
- }
- };
-
- resource 'DLOG' (129, "Sample Help Dialog", purgeable) {
- {34, 40, 234, 280},
- dBoxProc,
- visible,
- goAway,
- 0x0,
- 129,
- ""
- };
-
- resource 'DLOG' (131, "please wait", purgeable) {
- {40, 40, 126, 395},
- dBoxProc,
- visible,
- goAway,
- 0x0,
- 131,
- ""
- };
-
- resource 'MBAR' (128) {
- { /* array MenuArray: 4 elements */
- /* [1] */
- 128,
- /* [2] */
- 129,
- /* [3] */
- 130,
- /* [4] */
- 131
- }
- };
-
- resource 'SIZE' (-1) {
- reserved,
- acceptSuspendResumeEvents,
- reserved,
- canBackground,
- multiFinderAware,
- backgroundAndForeground,
- dontGetFrontClicks,
- ignoreChildDiedEvents,
- is32BitCompatible,
- isHighLevelEventAware,
- localAndRemoteHLEvents,
- notStationeryAware,
- dontUseTextEditServices,
- reserved,
- reserved,
- reserved,
- 250000,
- 250000
- };
-
- resource 'STR ' (128) {
- "Simple Help..."
- };
-
- resource 'CNTL' (128) {
- {99, 55, 128, 185},
- 0,
- visible,
- 0,
- 0,
- pushButProc,
- 0,
- "Close Me"
- };
-
- resource 'ICON' (128) {
- $"001F F800 00E0 0700 0300 00C0 0C00 0030"
- $"1800 0018 2000 0004 6FE0 0006 404F E002"
- $"8080 4001 8100 87F1 8201 0021 8402 0041"
- $"8FE4 0081 800F E101 4000 0202 6000 07F6"
- $"2000 0004 1800 0018 0C00 0030 0300 00C0"
- $"00E0 0700 001F F800 01E0 0000 0210 0000"
- $"0210 0000 0210 0000 01EF 0000 0009 0000"
- $"000F 3C00 0000 2400 0000 3CE0 0000 00E0"
- };
-
- resource 'ICON' (129) {
- $"0007 F000 001C 1C00 0030 0600 0040 0900"
- $"0EAC CC80 09A9 B7C0 0D6D 3570 1F00 0170"
- $"1200 0030 127C 3E2C 3C0C B01F 2405 2018"
- $"6401 0018 7402 0036 140E 0032 3C18 0032"
- $"2C1F C011 2C00 0019 2455 541F 4655 543C"
- $"4640 0434 2B5F FC76 1940 0456 19D5 54D4"
- $"18D5 55B2 1C55 5512 3875 5612 785D 5C11"
- $"D857 F40D A854 5405 B850 1404 F040 0404"
- };
-
-